/**
 * Created by leeho on 2017/8/29.
 * v2.6.1菜单路由修改 规则，如新增页面同时新增菜单，则路由名称不能为其他菜单的延伸
 * 如： /tranning/news/add(新增) 为 /tranning/news的延伸，则不可（原因为菜单会同时激活两个）
 */

export default [
  {
    path: '/training', // 培训入口index
    name: 'training',
    component: resolve => require(['views/training/index'], resolve)
  },
  {
    path: '/training/curriculum', // 课程列表
    component: resolve => require(['views/training/curriculum/index'], resolve)
  },
  {
    path: '/training/curriculum/detail', // 课程详情
    component: resolve => require(['views/training/curriculum/Detail'], resolve)
  },
  {
    path: '/training/curriculum/studentSign', // 课程学员报名
    component: resolve => require(['views/training/curriculum/StudentSign'], resolve)
  },
  {
    path: '/training/curriculum/setTem', // 课程教案模板设置
    component: resolve => require(['views/training/teachingPlan/SetTemplate'], resolve)
  },
  {
    path: '/training/curriculum/previewTem', // 课程教案模板预览
    component: resolve => require(['views/training/teachingPlan/PreviewTemplate.vue'], resolve)
  },
  {
    path: '/training/class', // 班级列表
    component: resolve => require(['views/training/class/index'], resolve)
  },
  {
    path: '/training/class/detail', // 班级详情
    component: resolve => require(['views/training/class/Detail'], resolve)
  },
  {
    path: '/training/class/detailTime', // 次课班级详情
    component: resolve => require(['views/training/class/DetailTimeClass'], resolve)
  },
  {
    path: '/training/class/addstudent', // 班级新增学员
    component: resolve => require(['views/training/class/AddStudent'], resolve)
  },
  {
    path: '/training/class/addtimestudent', // 次课班级新增学员
    component: resolve => require(['views/training/class/AddTimeStudent'], resolve)
  },
  {
    path: '/training/class/add', // 新增&编辑班级
    component: resolve => require(['views/training/class/Add'], resolve)
  },
  {
    path: '/training/class/editTime', // 次课编辑班级
    component: resolve => require(['views/training/class/EditTimeClass'], resolve)
  },
  {
    path: '/training/class/history', // 上课记录
    component: resolve => require(['views/training/class/History'], resolve)
  },
  {
    path: '/training/class/teachingplan', // 教学计划
    component: resolve => require(['views/training/teachingPlan/index'], resolve)
  },
  {
    path: '/training/class/teachingplan/plan', // 教案
    component: resolve => require(['views/training/teachingPlan/Plan'], resolve)
  },
  {
    path: '/training/class/program', // 训练大纲
    component: resolve => require(['views/training/trainingProgram/program'], resolve)
  },
  {
    path: '/training/class/program/plan', // 训练大纲-课时详情
    component: resolve => require(['views/training/trainingProgram/program/PlanDetail'], resolve)
  },
  {
    path: '/training/data', // 数据报表
    component: resolve => require(['views/training/data/index'], resolve)
  },
  {
    path: '/training/schedule', // 课程表
    component: resolve => require(['views/training/courseSchedule/index'], resolve)
  },
  {
    path: '/training/campus', // 校区列表
    component: resolve => require(['views/training/campus/index'], resolve)
  },
  {
    path: '/training/coach', // 教练列表
    component: resolve => require(['views/training/coach/index'], resolve)
  },
  {
    path: '/training/coach/add', // 新增教练
    name: 'addCoach',
    component: resolve => require(['views/training/coach/Edit'], resolve)
  },
  {
    path: '/training/coach/edit', // 编辑教练
    name: 'editCoach',
    component: resolve => require(['views/training/coach/Edit'], resolve)
  },
  {
    path: '/training/coach/detail/:id', // 教练详情
    component: resolve => require(['views/training/coach/Detail'], resolve)
  },
  {
    path: '/training/student', // 学员列表
    component: resolve => require(['views/training/student/index'], resolve)
  },
  {
    path: '/training/student/add', // 新增学员
    name: 'addStudent',
    component: resolve => require(['views/training/student/BatchAddStudent'], resolve)
  },
  {
    path: '/training/student/edit', // 编辑学员
    name: 'editStudent',
    component: resolve => require(['views/training/student/Edit'], resolve)
  },
  {
    path: '/training/student/detail/:id', // 学员详情
    component: resolve => require(['views/training/student/Detail'], resolve)
  },
  {
    path: '/training/student/situation', // 查看上课情况
    component: resolve => require(['views/training/student/Situation'], resolve)
  },
  {
    path: '/training/student/test', // 测试成绩
    component: resolve => require(['views/training/student/TestPoint'], resolve),
    children: [
      {
        path: '/training/student/test',
        component: resolve => require(['views/training/student/components/TestPointList'], resolve)
      },
      {
        path: '/training/student/test/edit',
        component: resolve => require(['views/training/student/components/TestPointEdit'], resolve)
      }
    ]
  },
  {
    path: '/training/sale', // 销售管理
    component: resolve => require(['views/training/sale/index'], resolve)
  },
  {
    path: '/training/sale/detail', // 销售详情
    component: resolve => require(['views/training/sale/Details'], resolve)
  },
  {
    path: '/training/finance', // 财务对账
    component: resolve => require(['views/training/finance/index'], resolve)
  },
  {
    path: '/training/curriculum/template', // 选择课程教案模板
    component: resolve => require(['views/training/teachingPlan/List'], resolve)
  },
  {
    path: '/training/student/chart', // 学员身体数据图表
    component: resolve => require(['views/training/student/Chart'], resolve)
  },
  {
    path: '/training/student/history', // 学员身体数据图表-历史记录
    component: resolve => require(['views/training/student/History'], resolve)
  },
  {
    path: '/training/tacticsBoard', // 战术板
    component: resolve => require(['views/training/tacticsBoard'], resolve)
  },
  {
    path: '/training/trainingprogram/mode', // 训练方式列表
    component: resolve => require(['views/training/trainingProgram/mode/index'], resolve)
  },
  {
    path: '/training/trainingprogram/mode/add', // 新增训练方式
    component: resolve => require(['views/training/trainingProgram/mode/Add'], resolve)
  },
  {
    path: '/training/trainingprogram/mode/show', // 训练方式预览
    component: resolve => require(['views/training/trainingProgram/mode/Show'], resolve)
  },
  {
    path: '/training/student/body-data', // 学员身体数据
    component: resolve => require(['views/training/student/BodyData'], resolve)
  },
  {
    path: '/training/trainingprogram/plan', // 训练计划
    component: resolve => require(['views/training/trainingProgram/plan'], resolve)
  },
  {
    path: '/training/trainingprogram/plan/index', // 训练计划新增和预览模板
    name: 'planTemplate',
    component: resolve => require(['views/training/trainingProgram/plan/Together'], resolve),
    children: [
      {
        path: '/training/trainingprogram/plan/add', // 新增训练计划模板
        name: 'planTemplate',
        component: resolve => require(['views/training/trainingProgram/plan/AddTemplate'], resolve)
      },
      {
        path: '/training/trainingprogram/plan/detail', // 预览训练计划
        name: 'preview',
        component: resolve => require(['views/training/trainingProgram/plan/Detail'], resolve)
      }
    ]
  },
  {
    path: '/training/trainingprogram/plan/detail', // 训练计划详情
    name: 'plan-detail',
    component: resolve => require(['views/training/trainingProgram/plan/Detail'], resolve)
  },
  {
    path: '/training/trainingprogram/plan/selected-temp', // 选择训练计划模板
    component: resolve => require(['views/training/trainingProgram/plan/SelectedTemp'], resolve)
  },
  {
    path: '/training/student/leave', // 学员请假
    component: resolve => require(['views/training/student/Leave'], resolve)
  },
  {
    path: '/training/coach/leave', // 教练请假
    component: resolve => require(['views/training/coach/Leave'], resolve)
  },
  {
    path: '/training/campus/edit', // 校区编辑
    component: resolve => require(['views/training/campus/Add'], resolve)
  },
  {
    path: '/training/campus/add', // 校区新增
    component: resolve => require(['views/training/campus/Add'], resolve)
  }
]
